package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.jinli.CrossJinLiData;
import com.yanqu.road.entity.activity.jinli.CrossJinLiUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class CrossJinLiBusiness {

    public static Map<Integer, Map<Long, CrossJinLiUserData>> getCrossJinLiUserDataMap(int activityId) {
        return DaoHelper.getCrossJinLiUserDataDaoImpl().getCrossJinLiUserDataMap(activityId);
    }

    public static boolean addCrossJinLiUserData(CrossJinLiUserData data) {
        return DaoHelper.getCrossJinLiUserDataDaoImpl().add(data);
    }

    public static boolean updateCrossJinLiUserData(CrossJinLiUserData data) {
        return DaoHelper.getCrossJinLiUserDataDaoImpl().update(data);
    }

    public static Map<Integer, CrossJinLiData> getCrossJinLiDataMap(int activityId) {
        return DaoHelper.getCrossJinLiDataDaoImpl().getCrossJinLiDataMap(activityId);
    }

    public static boolean addCrossJinLiData(CrossJinLiData data) {
        return DaoHelper.getCrossJinLiDataDaoImpl().add(data);
    }

    public static boolean updateCrossJinLiData(CrossJinLiData data) {
        return DaoHelper.getCrossJinLiDataDaoImpl().update(data);
    }


}
